package org.example.cet.demos.domain.form;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserForm {
    @NotNull(message = "请输入账号")
    private Long id;

    /**
     * 名字
     */
    @NotBlank(message = "请输入名字")
    private String username;

    /**
     * 密码
     */
    @NotBlank(message = "请输入密码")
    private String password;

    /**
     * 性别
     */
    @NotBlank(message = "请输入性别")
    private String gender;

    /**
     * 角色(分管理/老师/学生)
     */
    @NotBlank(message = "请输入角色(分管理/老师/学生)")
    private String role;

    /**
     * 电话
     */
    @NotBlank(message = "请输入电话")
    private String tel;



}
